package com.iie.bigVideo.mapper;

import com.iie.bigVideo.entity.Annex;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iie.bigVideo.entity.Video;
import com.iie.bigVideo.entity.dto.AnnexDto;
import com.iie.bigVideo.entity.dto.VideoDto;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2024-01-30
 */
public interface AnnexMapper extends BaseMapper<Annex> {
    List<AnnexDto> queryAnnexList(@Param("current") int current, @Param("size") int size, @Param("hashMap") HashMap<String, String> hashMap);

    Integer countAnnex();

    Integer addAnnexObject(Annex annex);

    Annex queryAnnexObjectByAnnexId(@Param("annexId") int annexId);

    Integer deleteAnnex(@Param("annexId") int annexId);


    AnnexDto queryByAnnexId(@Param("annexId")int annexId);


    Boolean updateAnnex(Annex annex);
}
